/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tilegame.sprites;

import graphics.Animation;

/**
 *
 * @author Allan
 */
public class Shot extends Element {

    public Shot(Animation left, Animation right,
            Animation deadLeft, Animation deadRight) {
        super(left, right, deadLeft, deadRight);
    }

    public float getMaxSpeed() {
        return 0.7f;
    }

    public void collideHorizontal() {
        setState(STATE_DYING);
    }

    public void collideVertical() {
        setState(STATE_DYING);
    }

    public boolean isFlying() {
        return isAlive();
    }
}
